package cn.edu.scau.cmi.luoxintai.abstractFactory.domainInterface;

import java.util.Scanner;

import cn.edu.scau.cmi.luoxintai.abstractFactory.domainInterface.AonongFactory;
import cn.edu.scau.cmi.luoxintai.abstractFactory.domainInterface.TianbangFactory;
import cn.edu.scau.cmi.luoxintai.abstractFactory.domainInterface.WensFactory;

public class FactoryCreator {
	public  void build() {
		Scanner in =new Scanner(System.in);
		while(true) {
			System.out.printf("AbstractFactory:Choose the band which you like : \n 1.Aonong,2.Tianbang,3.Wens \n");
			int choose = in.nextInt();
			switch(choose) {
			case 1: AonongFactory f1 = new AonongFactory();
					f1.Creat();
					break;
			case 2: TianbangFactory f2 = new TianbangFactory();
					f2.Creat();
					break;
			case 3: WensFactory f3 = new WensFactory();
					f3.Creat();
					break;
			}
		}
	}
}
